from django.db import models

# Create your models here.
class Order(models.Model):
    order_id = models.CharField(max_length=10,primary_key=True)
    order_status = models.IntegerField(default=0)
    user_id = models.CharField(max_length=10)
    create_time = models.DateTimeField(default="2010-01-01")
    total_price = models.DecimalField(max_digits=10,decimal_places=3,default=0)
    class Meta:
        db_table = 'order'